package ExtendDemo.demo13;

import ExtendDemo.demo14.ThreadServer;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.UUID;

public class ServerDemo {
    public static void main(String[] args)  throws IOException {
        ServerSocket ss = new ServerSocket(10004);
        while (true) {
            Socket s = ss.accept();
            ExtendDemo.demo14.ThreadServer threadServer=new ThreadServer(s);
            new Thread(threadServer).start();
        }
    }
}
